import React from 'react';
import {Text, ActivityIndicator, StyleSheet} from 'react-native';
import colors from '../../Themes/Colors';
import {Container} from '../../rcomponents';

const styles = StyleSheet.create({
  container: {
    justifyContent: 'center',
    alignItems: 'center',
  },
  loadingText: {
    color: colors.primary,
    fontSize: 24,
    paddingLeft: 10,
    marginTop: 10,
  },
});

function LaunchScreen() {
  return (
    <Container style={styles.container}>
      <ActivityIndicator size="large" color={colors.primary} />
      <Text style={styles.loadingText}>加载中...</Text>
    </Container>
  );
}

LaunchScreen.routeName = 'LaunchScreen';
export default LaunchScreen;
